<template>
<div v-bind ="{name:'name2'}" name="name" >
  {{state.currentTime}}
  <!-- <div>{{msg}}</div>
  <div>{{foo}}</div>
  <div>{{ob}}</div> -->
</div>
</template>

<script>
import { defineComponent,onMounted,ref} from "vue";
import { useStore } from "vuex";


export default defineComponent({
  async setup(){ 


    onMounted(()=>{
      console.log('mounted')
    })
    
    const store = useStore()
    
    setTimeout(()=>{
      store.commit('setCurrentTime','1:0:0')
    },1000)

    return {
      state:store.state
    }
  }
})
</script>